package edu.hgnc.factoryBean;

import edu.hgnc.beans.UserB;
import org.springframework.beans.factory.FactoryBean;

public class MyFactoryBean implements FactoryBean<UserD> {

	@Override
	public UserD getObject() throws Exception {
		return new UserD("后羿",18);
	}

	@Override
	public Class<?> getObjectType() {
		return null;
	}

	@Override
	public boolean isSingleton() {
		return true;
	}
}
